package org.samoji.business;

import java.util.List;

public abstract class Person {
	private String _name;
	private String _lastName;

	private Address _address;
	
	private List<PhoneNumber> _phoneNumbers;
	
	public Person() {;}

	public Person(String _name, String _lastName, Address _address, List<PhoneNumber> _phoneNumbers) {
		super();
		this._name = _name;
		this._lastName = _lastName;
		this._address = _address;
		this._phoneNumbers = _phoneNumbers;
	}

	public boolean addPhoneNumber(PhoneNumber pn) {
		return this._phoneNumbers.add(pn);
	}
	
	/**
	 * @return the _name
	 */
	public String get_name() {
		return _name;
	}

	/**
	 * @param _name the _name to set
	 */
	public void set_name(String _name) {
		this._name = _name;
	}

	/**
	 * @return the _lastName
	 */
	public String get_lastName() {
		return _lastName;
	}

	/**
	 * @param _lastName the _lastName to set
	 */
	public void set_lastName(String _lastName) {
		this._lastName = _lastName;
	}

	/**
	 * @return the _address
	 */
	public Address get_address() {
		return _address;
	}

	/**
	 * @param _address the _address to set
	 */
	public void set_address(Address _address) {
		this._address = _address;
	}

	/**
	 * @return the _phoneNumbers
	 */
	public List<PhoneNumber> get_phoneNumbers() {
		return _phoneNumbers;
	}

	/**
	 * @param _phoneNumbers the _phoneNumbers to set
	 */
	public void set_phoneNumbers(List<PhoneNumber> _phoneNumbers) {
		this._phoneNumbers = _phoneNumbers;
	}
}